package com.book.app;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.oas.annotations.EnableOpenApi;

//项目工程的主启动类
@SpringBootApplication   //表明该类是一个springboot启动类
@MapperScan("com.book.app.dao") //表示扫描我们Mapper包下的所有接口
@EnableTransactionManagement  //启用事务管理器，管理事务
@EnableOpenApi//启用swaggerAPI
public class SpringBootApp {
    public static void main(String[] args) {
        SpringApplication.run(SpringBootApp.class);
    }
}
